2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
+ broken ClientMessage events. (#157056, Owen Taylor)
+
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)
2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
+ broken ClientMessage events. (#157056, Owen Taylor)
+
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)
2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
+ broken ClientMessage events. (#157056, Owen Taylor)
+
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)
2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
+ broken ClientMessage events. (#157056, Owen Taylor)
+
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)
{
XEvent *xevent = (XEvent *)xev;
GdkWindow *win = event->any.window;
- GdkDisplay *display = GDK_WINDOW_DISPLAY (win);
- Atom atom = (Atom)xevent->xclient.data.l[0];
+ GdkDisplay *display;
+ Atom atom;
+
+ if (!win)
+ return GDK_FILTER_REMOVE;
+
+ display = GDK_WINDOW_DISPLAY (win);
+ atom = (Atom)xevent->xclient.data.l[0];
if (atom == gdk_x11_get_xatom_by_name_for_display (display, "WM_DELETE_WINDOW"))
{